//页面渲染配置相关 如表单组件
export default {
	main(tree) {
		const area = tree.initArea({
			title: '条件筛选',
			icon: 'el-icon-magic-stick'
		})
		area.add(area.jsSelect({
			label: '性别',
			name: 'sex',
			options: 'sex'
		}))

		area.addNode(
			area.jsInput({
				label: '搜索',
				name: 'searchText',
				span: 10,
				style: {
					marginRight: '.5rem'
				}
			}),
			area.jsButton({
				innerText: '查询',
				type: 'primary',
				//点击触发列表混合mixin_filter中的搜索监听
				buttonType: 'searchButton'
			}),
			area.jsButton({
				innerText: '重置',
				type: 'primary',
				//点击触发列表混合mixin_filter中的重置监听
				buttonType: 'resetButton'
			})
		)
	}
}
